﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DepartmentAdmin.aspx.cs" Inherits="Accounting.admin.DPD.DepartmentAdmin" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link type="text/css" href="../../css/AdminCss.css" rel="stylesheet" />
    <script type="text/javascript" src="../../js/AdminJs.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="Div_Row">
            <h2 id="H2_Title" runat="server">管理发布：</h2>
        </div>
        <div class="Div_Row">
            <asp:TextBox runat="server" ID="search" CssClass="searchTxt" onfocus="if(value=='Search...标题、作者'){this.style.color='#000';this.style.fontSize='15px';value=''}" onblur="if(value==''){this.style.color='#bdbab4';this.style.fontSize='15px';value='Search...标题、作者'}">Search...标题、作者</asp:TextBox>
            <asp:ImageButton ID="IbtnSearch" runat="server"
                ImageUrl="~/images/BtnSearch.png" OnClick="IbtnSearch_Click" />
            <asp:Label ID="lblUserType" runat="server" Text="" Visible="false"></asp:Label>
        </div>
        <div class="Div_Width_big_800 Div_Margin_top_10">
            <asp:GridView ID="Newsshow" runat="server" AutoGenerateColumns="False" CellPadding="4"
                BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px"
                OnRowDataBound="Newsshow_RowDataBound" PageSize="10" AllowPaging="True" OnPageIndexChanging="Newsshow_PageIndexChanging">
                <Columns>
                    <asp:TemplateField HeaderText="标题">
                        <ItemTemplate>
                            <div class="Div_Width_long padding_5 Div_Height_Short Size_19 Color_black center Div_Overflow_H">
                                <%#Eval("Title") %>
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="发布日期">
                        <ItemTemplate>
                            <div class="Div_Width_short padding_5 Div_Height_Short Size_19 Color_black center">
                                <%#Eval("DateTime")%>
                            </div>
                            <asp:Label ID="lblId" runat="server" Text='<%#Eval("ID") %>' Visible="False"></asp:Label>
                            <asp:Label ID="lblNavSubId" runat="server" Text='<%# Eval("NavSubId") %>' Visible="False"></asp:Label><%--ID和二级ID--%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <%--<asp:TemplateField HeaderText="作者">
                        <ItemTemplate>
                            <div class="Div_Width_short padding_5 Div_Height_Short Size_19 Color_black center">
                                <%#Eval("Author")%>
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="浏览次数">
                        <ItemTemplate>
                            <div class="Div_Width_short padding_5 Div_Height_Short Size_19 Color_black center">
                                <%#Eval("Number")%>
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>--%>
                    <asp:TemplateField HeaderText="选择删除">
                        <ItemTemplate>
                            <div class="Div_Width_short padding_5 Div_Height_Short Size_19 Color_black center">
                                <asp:CheckBox ID="CheckDelete" runat="server" />
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="编辑">
                        <ItemTemplate>
                            <div class="Div_Width_short padding_5 Div_Height_Short Size_19 Color_black center A_C_B">
                                <a href="DepartmentRevise.aspx?Id=<%#Eval("ID") %>&type=0">编辑</a>
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                <HeaderStyle BackColor="#222222" Font-Bold="True" ForeColor="#ffffff" />
                <PagerStyle BackColor="#222222" ForeColor="#ffffff" HorizontalAlign="right" />
                <PagerTemplate>
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="labelCurrebrPage" runat="server" Font-Size="Small">当前页：<%#((GridView)Container.NamingContainer).PageIndex+1 %></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="labelPageCount" runat="server" Font-Size="Small">总页数：<%#((GridView)Container.NamingContainer).PageCount %></asp:Label>
                            </td>
                            <td>
                                <asp:LinkButton ID="linkButtonFirstPage" runat="server" CssClass="lbtn_Css Color_White" CommandArgument="First" Enabled="<%#((GridView)Container.NamingContainer).PageIndex!=0 %>"
                                    CommandName="Page">首页</asp:LinkButton>
                            </td>
                            <td>
                                <asp:LinkButton ID="linkButton1" runat="server" CssClass="lbtn_Css Color_White" CommandArgument="Prev" CommandName="Page"
                                    Enabled="<%#((GridView)Container.NamingContainer).PageIndex!=0 %>">上一页</asp:LinkButton>
                            </td>
                            <td>
                                <asp:LinkButton ID="linkButtonNextPage" runat="server" CssClass="lbtn_Css Color_White" CommandArgument="Next" CommandName="Page"
                                    Enabled="<%#((GridView)Container.NamingContainer).PageIndex!=((GridView)Container.NamingContainer).PageCount-1 %>">下一页</asp:LinkButton>
                            </td>
                            <td>
                                <asp:LinkButton ID="linkButtonLastPage" runat="server" CssClass="lbtn_Css Color_White" CommandArgument="Last" Enabled="<%#((GridView)Container.NamingContainer).PageIndex!=((GridView)Container.NamingContainer).PageCount-1 %>"
                                    CommandName="Page">尾页</asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </PagerTemplate>
                <RowStyle BackColor="White" ForeColor="#003399" />
                <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                <SortedAscendingCellStyle BackColor="#EDF6F6" />
                <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                <SortedDescendingCellStyle BackColor="#D6DFDF" />
                <SortedDescendingHeaderStyle BackColor="#002876" />
            </asp:GridView>
            <div class=" Small_Features_short Div_Margin_top_10">
                <asp:LinkButton ID="lbtnDel" CssClass="lbtn_Css Color_black" runat="server" OnClick="lbtnDel_Click">删除</asp:LinkButton>
                <asp:LinkButton ID="lbtnReverse" CssClass="lbtn_Css Color_black" runat="server" OnClick="lbtnReverse_Click">反选</asp:LinkButton>
                <asp:LinkButton ID="lbtnSelectAll" CssClass="lbtn_Css Color_black" runat="server" OnClick="lbtnSelectAll_Click">全选</asp:LinkButton>
                <asp:LinkButton ID="lbtnCancel" CssClass="lbtn_Css Color_black" runat="server" OnClick="lbtnCancel_Click">取消</asp:LinkButton>
            </div>
        </div>
    </form>
</body>
</html>
